<article class="photo %{ if(_photo.photo != null) { }% selected %{ } }%">
    %{
        i = 1;
        lvl = _photo.thumb.size() - 1;
        lvl = _lvl > lvl ? lvl : _lvl;
    }%
    <div class="a-header">
        &nbsp;
        <input name="photo" type="checkbox" value="${_photo.id}"
            %{ if(_photo.photo != null) { }% checked %{ } }% />
    </div>
    %{ if (lvl >= 0) { }%
        <img class="l-${lvl}" src="${_photo.thumb.get(lvl)}" alt="" />
    %{ } }%

</article>
